package com.imooc.sellspringcloud.server.enumUtils;

import lombok.Getter;

/**
 * @author
 * @create 2019-07-28 16:59
 **/
@Getter
public enum ProductExceptionEnum {
    PRODUCT_NOT_ENOUGH(1, "商品库存不足"),
    PRODUCT_WAREHOUSING_FAIL(2, "入库失败");

    private int code;
    private String message;

    ProductExceptionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
}